import request from '@/utils/request'



// 查询biz_h门店分类列表
export function listStoreCategory(query) {
  return request({
    url: '/biz/subsidyStoreCategory/list',
    method: 'get',
    params: query
  })
}

// 查询biz_门店分类详细
export function getStoreCategory(id) {
  return request({
    url: '/biz/subsidyStoreCategory/' + id,
    method: 'get'
  })
}

// 新增biz_门店分类
export function addStoreCategory(data) {
  return request({
    url: '/biz/subsidyStoreCategory',
    method: 'post',
    data: data
  })
}

// 修改biz_门店分类
export function updateStoreCategory(data) {
  return request({
    url: '/biz/subsidyStoreCategory',
    method: 'put',
    data: data
  })
}

// 删除biz_门店分类
export function delStoreCategory(id) {
  return request({
    url: '/biz/subsidyStoreCategory/' + id,
    method: 'delete'
  })
}


// 查询biz_门店管理列表
export function listStore(query) {
  return request({
    url: '/biz/subsidyStore/list',
    method: 'get',
    params: query
  })
}

// 查询biz_门店管理详细
export function getStore(id) {
  return request({
    url: '/biz/subsidyStore/' + id,
    method: 'get'
  })
}

// 新增biz_门店管理
export function addStore(data) {
  return request({
    url: '/biz/subsidyStore',
    method: 'post',
    data: data
  })
}

// 修改biz_门店管理
export function updateStore(data) {
  return request({
    url: '/biz/subsidyStore',
    method: 'put',
    data: data
  })
}

// 删除biz_门店管理
export function delStore(id) {
  return request({
    url: '/biz/subsidyStore/' + id,
    method: 'delete'
  })
}



// 查询biz_商品分类列表
export function listGoodsCategory(query) {
  return request({
    url: '/biz/subsidyGoodsCategory/list',
    method: 'get',
    params: query
  })
}

// 查询biz_商品分类详细
export function getGoodsCategory(id) {
  return request({
    url: '/biz/subsidyGoodsCategory/' + id,
    method: 'get'
  })
}

// 新增biz_商品分类
export function addGoodsCategory(data) {
  return request({
    url: '/biz/subsidyGoodsCategory',
    method: 'post',
    data: data
  })
}

// 修改biz_商品分类
export function updateGoodsCategory(data) {
  return request({
    url: '/biz/subsidyGoodsCategory',
    method: 'put',
    data: data
  })
}

// 删除biz_商品分类
export function delGoodsCategory(id) {
  return request({
    url: '/biz/subsidyGoodsCategory/' + id,
    method: 'delete'
  })
}

// 查询biz_商品管理列表
export function listGoods(query) {
  return request({
    url: '/biz/subsidyGoods/list',
    method: 'get',
    params: query
  })
}

// 查询biz_商品管理详细
export function getGoods(id) {
  return request({
    url: '/biz/subsidyGoods/' + id,
    method: 'get'
  })
}

// 新增biz_商品管理
export function addGoods(data) {
  return request({
    url: '/biz/subsidyGoods',
    method: 'post',
    data: data
  })
}
// 上下架
export function shelvesGoods(data) {
  return request({
    url: '/biz/subsidyGoods/shelves',
    method: 'post',
    data: data
  })
}
// 导出商品管理 
export function exportGoods(data) {
  return request({
    url: '/biz/subsidyGoods/export',
    method: 'post',
    data: data
  })
}

// 修改biz_商品管理
export function updateGoods(data) {
  return request({
    url: '/biz/subsidyGoods',
    method: 'put',
    data: data
  })
}

// 删除biz_商品管理
export function delGoods(id) {
  return request({
    url: '/biz/subsidyGoods/' + id,
    method: 'delete'
  })
}
